package protocol.print;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class PrintRequestSend {

	private byte[] m_doc;
	private int m_docLength;
		
	public PrintRequestSend(byte[] doc)
	{
		m_doc = doc;
	}
	public DataOutputStream write(DataOutputStream dos) throws IOException
	{
		dos.writeInt(m_doc.length);
		dos.write(m_doc);
		
		return dos;
	}
}
